package com.woniuxy.system.controller;


import com.woniuxy.response.ResponseResult;
import com.woniuxy.system.demol.entity.Role;
import com.woniuxy.system.demol.entity.SystemSector;
import com.woniuxy.system.demol.entity.User;
import com.woniuxy.system.demol.vo.UserVo;
import com.woniuxy.system.service.SystemSectorService;
import com.woniuxy.util.CheckTokenUtil;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 部门详情; 前端控制器
 * </p>
 *
 * @author why
 * @since 2023-09-08
 */
@RestController
@RequestMapping("/systemSector")
public class SystemSectorController {

    @Resource
    private SystemSectorService systemSectorService;

    //查找所有的部门信息
    @GetMapping("/findAll")
    public ResponseResult<List<SystemSector>> findAll() {
        List<SystemSector> list = systemSectorService.list();
        return new ResponseResult<>(ResponseResult.SUCCESS, "success", list);

    }

}

